import { Get,Post } from '../index'

export default {
  login(params) {
    return new Post('/user/login',params)
  },
  register(params) {
    return new Post('/user/register',params)
  },
  getUserList(params) {
    return new Get(`/user/getUserList/${params.page}/${params.pageNumber}`)
  },
  getUserById(params) {
    return new Get(`/user/find/${params}`)
  },
  deleteUserById(params) {
    return new Get(`/user/delete/${params}`)
  },
  allocateRole(params) {
    return new Post('/user/allocate',params)
  }
}
